package com.tarena.micro.service.order.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitDeclareConfig {
    //创建一个 cart_delete
    @Bean
    public Queue cartDelete(){
        return QueueBuilder.nonDurable("cart_delete").build();
    }
}
